export * from './utils'
export * from './modules/line'
export * from './modules/bar'
export * from './modules/pie'

// region TODO 折线数据，包含设备上下线日志的formatter （单折线）
export function outlineLineFormatter (e) {
  let item = null
  if (e[0].seriesIndex === 0) {
    if (e[0].value[1] !== null) item = e[0]
    else item = e[1]
  } else item = e[0]
  if (item) {
    let ret = item.value[0]
    ret += '<br/>' + item.marker + item.seriesName
    if (item.seriesIndex === 0) ret += '：' + item.value[1]
    return ret
  }
}
// endregion
